package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.NetworkHandworkBill;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.vo.NetworkHandworkBillVo;
import com.ruoyi.logistic.mapper.NetworkBillPayableMapper;
import com.ruoyi.logistic.mapper.NetworkHandworkBillMapper;
import com.ruoyi.logistic.service.NetworkHandworkBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

@Service
public class NetworkHandworkBillServiceImpl implements NetworkHandworkBillService {
    @Autowired
    private NetworkHandworkBillMapper networkHandworkBillMapper;
    @Override
    public List<NetworkHandworkBill> selectAll(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkHandworkBillMapper.selectAll();
    }

    @Override
    public Boolean insert(NetworkHandworkBill networkHandworkBill) {
        return networkHandworkBillMapper.insert(networkHandworkBill);
    }

    @Override
    public Boolean update(NetworkHandworkBill networkHandworkBill) {
        return networkHandworkBillMapper.update(networkHandworkBill);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkHandworkBillMapper.deleteById(id);
    }

    @Override
    public NetworkHandworkBill findById(Integer id) {
        return networkHandworkBillMapper.findById(id);
    }

    @Override
    public List<NetworkHandworkBill> search(NetworkHandworkBillVo networkHandworkBillVo, PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkHandworkBillMapper.search(networkHandworkBillVo);
    }


}
